package com.sunye.elasticsearch.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author paulG
 * @since 2020/10/15
 **/
@Data
public class EsDogSearchDTO {

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "颜色")
    private String color;


    @ApiModelProperty(value = "售卖状态")
    private String saleStatus;


    @ApiModelProperty("狗的年龄")
    private String age;

    /**
     * 是否为推荐狗（Boolean类型）
     */
    @ApiModelProperty("是否为推荐狗")
    private Boolean recommend;
    /**
     * 售卖价格
     */
    @ApiModelProperty(value = "价格区间", example = "10_30")
    private String price;

    /**
     * 卖点
     */
    private List<String> sellingPointIds;

    /**
     * sku
     */
    private List<String> skuIds;


    @ApiModelProperty("排序字段  price_asc  price_desc  age_ase age_desc")
    private String sort;

    @ApiModelProperty("品种")
    private String dogBreed;

    @ApiModelProperty("分类")
    private Integer categoryId;


    @ApiModelProperty("按照年龄分组")
    private String groupByAge;


    @ApiModelProperty("按照年龄/品种分组")
    private String groupByAgeAndBreed;

    @ApiModelProperty("分组取最大年龄")
    private String groupByMaxAge;



    @ApiModelProperty("坐标传入 lat_lon ")
    private String position;

}
